<script>
import { Login } from './services/index' 
	export default {
		onLaunch: function() {
			wx.login({
            success : async res=>{
                console.log('res...' , res);
                let result = await Login(res.code);
                console.log( 'login.....' , result);
				wx.setStorageSync( 'openid' , result.data.openid )
            }
        })
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>
<script>
import axios from "./util/index";

export default {
	data() {
		return {
			data : []
		}
	},

	async created(){
		let result = await axios.get('/pgc/web/timeline?types=1')
		console.log( "测试" , result);
	}
}
</script>
<style>
	/*每个页面公共css */
</style>
